<script src="/javascripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
<script src="/javascripts/mce_editor.js" type="text/javascript"></script>
<div class='form'>
  <% form_for @style,:html=>{:multipart=>true} do |f| %>
    <%= f.error_messages %>

    <p>
      <label for="style_sex">性别</label>
      <%=  select("style","sex",Style::SEX,:prompt => "请选择..") %>
    </p>

    <p>
      <label for="style_name">名称</label>
      <%= f.text_field :name %>
    </p>

    <p>
      <label for="style_sn">编号</label>
      <%= f.text_field :sn %>
    </p>


    <p>
      <label for="style_description">描述</label>
      <%= f.text_area :description,:cols=>25,:rows=>4,:class =>"mce-editor" %>
    </p>

    <p>
      <label for="style_active">可用</label>
      <%= f.check_box :active %>
    </p>

    <p>
      <%= f.submit button_name,:class=>'submit' %>
    </p>
  <% end %>
</div>